<template>
  <div class="app-container">

  </div>
</template>

<script>
  import {
    encryptBy,
    decryptBy
  } from '@/api/encryption';
  export default {
    name: "Templateurl",
    components: {

    },
    data() {
      return {

      };
    },
    created() {
      let timestamp = new Date().getTime() + ''
      let val = encryptBy(timestamp)
      window.localStorage.setItem('edsTime', val)
      console.log(val)
      let str = process.env.VUE_APP_BASE+"/ui-design/?templateId=578&code=" + this.$store.state.user.token + '&timestamp=' + timestamp;
	  //let str = "https://zg.lifejiankang.com/ui-design?code=" + this.$store.state.user.token + '&timestamp=' + timestamp;
      console.log(str)
      window.open(str)

      this.$store.dispatch("tagsView/delView", this.$route);
      this.$router.push({
        path: "/index"

      });
    },
    methods: {

    }
  };
</script>
